home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / source / hsclib / msgid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  8.3 KB  |  193 lines

  1. /*
  2.  * This source code is part of hsc, a html-preprocessor,
  3.  * Copyright (C) 1995-1997  Thomas Aglassinger
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20. /*
  21.  * hsclib/msgid.h
  22.  *
  23.  * defines for message-ids (warnings, errors,..)
  24.  *
  25.  * updated:  2-Mar-1997
  26.  * created: 30-Jul-1995
  27.  */
  28.  
  29. #ifndef HSC_MSGID_H
  30. #define HSC_MSGID_H
  31.  
  32. #include "ugly/utypes.h"
  33.  
  34. /* masks for message classes */
  35. #define MASK_MESSAGE   0x0fff
  36. #define MASK_MSG_CLASS 0xf000
  37.  
  38. /* message  classes */
  39. #define MSG_NOTE  0x00000       /* message */
  40. #define MSG_STYLE 0x01000       /* bad style */
  41. #define MSG_PORT  0x02000       /* portability prolem */
  42. #define MSG_WARN  0x03000       /* warning */
  43. #define MSG_ERROR 0x04000       /* error */
  44. #define MSG_FATAL 0x0f000       /* fatal error */
  45. #define MSG_NONE  0xff000       /* out of msg-array */
  46.  
  47. /*
  48.  *=========================
  49.  * next message number
  50.  *=========================
  51.  */
  52. #define MAX_MSGID (86-1)
  53.  
  54. /*
  55.  * obsolete numbers:
  56.  * - see below
  57.  * #define MSG_NO_OUTPUT          (MSG_FATAL+  4)  / * can't open output file * /
  58.  * #define MSG_NO_OUTFNAME        (MSG_FATAL+  5)  / * can't evaluate outp-filenm. * /
  59.  * #define MSG_WSPC_AROUND_TAG    (MSG_STYLE+  8)  / * white space around tag * /
  60.  *
  61.  */
  62.  
  63. /*
  64.  * fatal errors
  65.  */
  66. #define MSG_NEW_PRJFILE        (MSG_WARN +  1)  /* creating new project file */
  67. #define MSG_CORRUPT_PRJFILE    (MSG_FATAL+  2)  /* corrupt project file */
  68. #define MSG_UNEX_EOF           (MSG_FATAL+  3)  /* unexpected eof */
  69. #define MSG_NO_INPUT           (MSG_FATAL+  6)  /* can't open input file */
  70.  
  71. /*
  72.  * information messages
  73.  */
  74. #define MSG_TAG_STRIPPED       (MSG_NOTE +  7)  /* stripped tag with ext. href */
  75. #define MSG_TAG_CANT_STRIP     (MSG_WARN + 70)  /* can't strp special tag */
  76.  
  77. /*
  78.  * bad style messages
  79.  */
  80. #define MSG_WRONG_HEADING      (MSG_STYLE+  9)  /* wrong heading */
  81. #define MSG_CLICK_HERE         (MSG_STYLE+ 10)  /* click-here-syndrome */
  82.  
  83. /*
  84.  * messages within tags
  85.  */
  86. #define MSG_UNKN_TAG           (MSG_WARN + 11)  /* unknown tag */
  87. #define MSG_TAG_TOO_OFTEN      (MSG_ERROR+ 12)  /* tag occured too often */
  88. #define MSG_UNMA_CTAG          (MSG_ERROR+ 13)  /* unmatched end-tag */
  89. #define MSG_CTAG_NESTING       (MSG_WARN + 14)  /* illegal end-tag nesting */
  90. #define MSG_MISS_REQTAG        (MSG_ERROR+ 15)  /* required tag missing */
  91. #define MSG_MISS_RCMDTAG       (MSG_STYLE+ 67)  /* recommended tag missing */
  92. #define MSG_MISS_CTAG          (MSG_WARN + 16)  /* end-tag missing */
  93. #define MSG_UNKN_TAG_OPTION    (MSG_ERROR+ 17)  /* unknown tag option */
  94. #define MSG_TAG_OBSOLETE       (MSG_WARN + 37)  /* obsolete tag */
  95. #define MSG_TAG_JERK           (MSG_WARN + 38)  /* jerk tag */
  96. #define MSG_ILLG_WHTSPC        (MSG_ERROR+ 47)  /* illegal whitespace */
  97. #define MSG_MBI                (MSG_ERROR+ 60)  /* must be inside */
  98. #define MSG_NAW                (MSG_ERROR+ 61)  /* not allowed with */
  99. #define MSG_ILLG_CTAG          (MSG_ERROR+ 66)  /* illegal end-tag */
  100. #define MSG_SUCC_WHTSPC        (MSG_PORT + 78)  /* succeeding white-space */
  101. #define MSG_PREC_WHTSPC        (MSG_PORT + 79)  /* preceeding white-space */
  102.  
  103. /*
  104.  * messages within entities
  105.  */
  106. #define MSG_UNKN_ENTITY        (MSG_WARN + 18)  /* unknown entity */
  107. #define MSG_EXPT_SEMIC         (MSG_WARN + 19)  /* ";" expected */
  108. #define MSG_RPLC_ENT           (MSG_NOTE + 46)  /* replaced entity */
  109. #define MSG_ILLG_DEFENT        (MSG_ERROR+ 69)  /* illegal entity definition */
  110. #define MSG_ICON_ENTITY        (MSG_PORT + 58)  /* icon-entity found */
  111. #define MSG_RPLC_ICON          (MSG_NOTE + 77)  /* icon-entity found */
  112.  
  113. /*
  114.  * messages within attributes
  115.  */
  116. #define MSG_UNKN_ATTR_REF      (MSG_ERROR+ 20)  /* unknown attribute reference */
  117. #define MSG_UNKN_ATTR_TAG      (MSG_WARN + 84)  /* unknown tag attribute */
  118. #define MSG_UNKN_ATTR_MACRO    (MSG_ERROR+ 85)  /* unknown macro attribute */
  119. #define MSG_NO_URIPATH         (MSG_WARN + 21)  /* path to URI not found */
  120. #define MSG_SERVER_URI         (MSG_WARN + 36)  /* suspicios enum value */
  121. #define MSG_ARG_NO_QUOTE       (MSG_PORT + 22)  /* argument without quote */
  122. #define MSG_EMPTY_SYMB_REF     (MSG_ERROR+ 23)  /* empty symbol reference */
  123. #define MSG_ILLG_ATTR_FLAG     (MSG_WARN + 24)  /* attribute flag not allowed here */
  124.  
  125. #define MSG_UNEX_ATTR_TYPE     (MSG_ERROR+ 25)  /* illegal symbol type */
  126. #define MSG_UNEX_ATTR_VALUE    (MSG_WARN + 45)  /* unexpected attribute value */
  127.  
  128. #define MSG_SYMB_2ND_DEFAULT   (MSG_ERROR+ 26)  /* default value already set */
  129. #define MSG_ENUM_UNKN          (MSG_WARN + 35)  /* unknown enum value */
  130. #define MSG_NOARG_ATTR         (MSG_ERROR+ 42)  /* attr requires arg */
  131. #define MSG_UNKN_ATTR_OPTION   (MSG_ERROR+ 43)  /* unknown attr option */
  132. #define MSG_MISS_REQ_ATTR      (MSG_ERROR+ 44)  /* required attr missing */
  133. #define MSG_ATTR_REDEFINED     (MSG_WARN + 63)  /* attr already defined */
  134. #define MSG_ILLG_ATTRNAME      (MSG_ERROR+ 64)  /* illegal attribute identifier */
  135. #define MSG_UNKN_BINOP         (MSG_ERROR+ 65)  /* unknown binary operator */
  136. #define MSG_ATTR_CONST         (MSG_ERROR+ 27)  /* can't change constant attr */
  137. #define MSG_IMG_CORRUPT        (MSG_ERROR+  8)  /* image corrupt * /
  138.  
  139. /*
  140.  * messages from tag handles
  141.  */
  142. #define MSG_ANCHOR_HEADING     (MSG_STYLE+ 28)  /* heading inside anchor */
  143. #define MSG_ANCH_NO_NMHR       (MSG_ERROR+ 29)  /* A : no NAME or HREF */
  144. #define MSG_CL_TAG_ARG         (MSG_ERROR+ 62)  /* args for end-tag */
  145. #define MSG_LF_IN_COMMENT      (MSG_PORT + 48)  /* LF within comment */
  146. #define MSG_GT_IN_COMMENT      (MSG_PORT + 49)  /* GT within comment */
  147. #define MSG_ZERO_COMMENT       (MSG_PORT + 50)  /* SGML zero comment */
  148. #define MSG_TEXT_IN_COMMENT    (MSG_WARN + 55)  /* text outside comment context */
  149.  
  150. /*
  151.  * messages from hsc-tag handles
  152.  */
  153. #define MSG_SYSTEM_RETURN      (MSG_WARN + 54)  /* external process result <> 0 */
  154. #define MSG_UNMA_ELSE          (MSG_ERROR+ 53)  /* unmatched $ELSE */
  155. #define MSG_DEFTAG_NO_OPEN     (MSG_FATAL+ 57)  /* no opening tag for deftag cl. */
  156. #define MSG_REDEFINE_ENDTAG    (MSG_ERROR+ 52)  /* redefined end tag */
  157. #define MSG_REDEFINE_TAG       (MSG_WARN + 59)  /* redefined & replaced tag */
  158. #define MSG_USER_MESSAGE       (           39)  /* user message */
  159. #define MSG_BLINK_SUX          (MSG_STYLE+ 25)  /* blink sucks  */
  160. #define MSG_FRAME_SUX          (MSG_STYLE+ 76)  /* frames are disgusting */
  161. #define MSG_NO_CONTENT         (MSG_FATAL+ 28)  /* no content */
  162. #define MSG_REDEFINE_LAZY      (MSG_ERROR+ 56)  /* redefined lazy */
  163. #define MSG_UNKN_LAZY          (MSG_ERROR+ 32)  /* unknown lazy * /
  164.  
  165. /*
  166.  * messages within expressions
  167.  */
  168. #define MSG_UNKN_ENVVAR        (MSG_WARN + 41)  /* unknown environ. var */
  169. #define MSG_ILLG_NUM           (MSG_WARN + 71)  /* illegal numeric value */
  170. #define MSG_ILLG_COLOR         (MSG_WARN + 72)  /* illegal color value */
  171. #define MSG_REQU_QUOTE         (MSG_WARN + 81)  /* value required quotes */
  172. #define MSG_CHANGED_QUOTE      (MSG_NOTE + 82)  /* not assign quote requested */
  173.  
  174. /*
  175.  * misc. messages
  176.  */
  177. #define MSG_UNMA_GT            (MSG_ERROR+ 30)  /* unmatched ">" */
  178. #define MSG_UNEXPT_CH          (MSG_ERROR+ 31)  /* unexpected char */
  179. #define MSG_STR_LF             (MSG_WARN + 33)  /* linefeed in string */
  180. #define MSG_UNEX_EOL           (MSG_ERROR+ 34)  /* unexpected eol */
  181. #define MSG_NO_CONFIG          (MSG_FATAL+ 40)  /* can't open config */
  182. #define MSG_NO_DOCENTRY        (MSG_WARN + 51)  /* no document-entry for id */
  183. #define MSG_UNKN_FILETYPE      (MSG_WARN + 68)  /* unknown file type (for size) */
  184. #define MSG_UNKN_LOCAL_ID      (MSG_WARN + 73)  /* unknown local ID */
  185. #define MSG_UNKN_ID            (MSG_WARN + 74)  /* unknown ID */
  186. #define MSG_REDEFINE_ID        (MSG_WARN + 75)  /* duplicate ID */
  187. #define MSG_NOEXEC_OUTPUT      (MSG_WARN + 80)  /* no output-file for <$exec>*/
  188. #define MSG_IOERROR            (MSG_ERROR+ 83)  /* i/o-error */
  189.  
  190.  
  191. #endif
  192.  
  193.